<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Bluetooth Host Stack Library: Client API</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><a href="http://www.cypress.com/"><img alt="Logo" src="IFXCYP_one-line.png"/></a></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Bluetooth Host Stack Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('group__gatt__client__api__functions.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Client API<div class="ingroups"><a class="el" href="group__wicedbt__gatt.html">Generic Attribute (GATT)</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">General Description</h2>
<p>GATT Profile Client Functions. </p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga18fac5275124f232b594ffe4af146774"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__wicedbt__gatt.html#ga0e035835afe92d61fe430ea19029677a">wiced_bt_gatt_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gatt__client__api__functions.html#ga18fac5275124f232b594ffe4af146774">wiced_bt_gatt_client_configure_mtu</a> (uint16_t conn_id, uint16_t mtu)</td></tr>
<tr class="memdesc:ga18fac5275124f232b594ffe4af146774"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configure the ATT MTU size for a connection on an LE transport.  <a href="#ga18fac5275124f232b594ffe4af146774">More...</a><br /></td></tr>
<tr class="separator:ga18fac5275124f232b594ffe4af146774"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9ed05bb952c196c118f3c3d5305f215e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__wicedbt__gatt.html#ga0e035835afe92d61fe430ea19029677a">wiced_bt_gatt_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gatt__client__api__functions.html#ga9ed05bb952c196c118f3c3d5305f215e">wiced_bt_gatt_client_send_discover</a> (uint16_t conn_id, <a class="el" href="group__wicedbt__gatt.html#ga9ce8b7b2a10d8e1f851d62aa931b0e18">wiced_bt_gatt_discovery_type_t</a> discovery_type, <a class="el" href="structwiced__bt__gatt__discovery__param__t.html">wiced_bt_gatt_discovery_param_t</a> *p_discovery_param)</td></tr>
<tr class="memdesc:ga9ed05bb952c196c118f3c3d5305f215e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Start an attribute discovery on an ATT server.  <a href="#ga9ed05bb952c196c118f3c3d5305f215e">More...</a><br /></td></tr>
<tr class="separator:ga9ed05bb952c196c118f3c3d5305f215e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga22d6a277ecfcc3f3193e248e5a9c89c3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__wicedbt__gatt.html#ga0e035835afe92d61fe430ea19029677a">wiced_bt_gatt_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gatt__client__api__functions.html#ga22d6a277ecfcc3f3193e248e5a9c89c3">wiced_bt_gatt_client_send_read_handle</a> (uint16_t conn_id, uint16_t handle, uint16_t offset, uint8_t *p_read_buf, uint16_t len, <a class="el" href="group__wicedbt__gatt.html#ga44fcc1fe578d11d29279b92a7fcc936d">wiced_bt_gatt_auth_req_t</a> auth_req)</td></tr>
<tr class="memdesc:ga22d6a277ecfcc3f3193e248e5a9c89c3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read from remote ATT server.  <a href="#ga22d6a277ecfcc3f3193e248e5a9c89c3">More...</a><br /></td></tr>
<tr class="separator:ga22d6a277ecfcc3f3193e248e5a9c89c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaab8c3fff985e0a6beb83cd368b63e548"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__wicedbt__gatt.html#ga0e035835afe92d61fe430ea19029677a">wiced_bt_gatt_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gatt__client__api__functions.html#gaab8c3fff985e0a6beb83cd368b63e548">wiced_bt_gatt_client_send_read_by_type</a> (uint16_t conn_id, uint16_t s_handle, uint16_t e_handle, <a class="el" href="structwiced__bt__uuid__t.html">wiced_bt_uuid_t</a> *p_uuid, uint8_t *p_read_buf, uint16_t len, <a class="el" href="group__wicedbt__gatt.html#ga44fcc1fe578d11d29279b92a7fcc936d">wiced_bt_gatt_auth_req_t</a> auth_req)</td></tr>
<tr class="memdesc:gaab8c3fff985e0a6beb83cd368b63e548"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read by type from remote ATT server.  <a href="#gaab8c3fff985e0a6beb83cd368b63e548">More...</a><br /></td></tr>
<tr class="separator:gaab8c3fff985e0a6beb83cd368b63e548"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga57ead21a135107e216056fb40e5013fd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__wicedbt__gatt.html#ga0e035835afe92d61fe430ea19029677a">wiced_bt_gatt_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gatt__client__api__functions.html#ga57ead21a135107e216056fb40e5013fd">wiced_bt_gatt_client_send_read_multiple</a> (uint16_t conn_id, <a class="el" href="group__wicedbt__gatt.html#ga6bf4e326bf95c613ff59591782abf6b4">wiced_bt_gatt_opcode_t</a> opcode, int num_handles, uint8_t *p_handle_stream, <a class="el" href="group__wicedbt__gatt.html#ga44fcc1fe578d11d29279b92a7fcc936d">wiced_bt_gatt_auth_req_t</a> auth_req)</td></tr>
<tr class="memdesc:ga57ead21a135107e216056fb40e5013fd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read multiple from remote ATT server.  <a href="#ga57ead21a135107e216056fb40e5013fd">More...</a><br /></td></tr>
<tr class="separator:ga57ead21a135107e216056fb40e5013fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1a0c27ab8cf1552b82d7892fef722a4a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__wicedbt__gatt.html#ga0e035835afe92d61fe430ea19029677a">wiced_bt_gatt_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gatt__client__api__functions.html#ga1a0c27ab8cf1552b82d7892fef722a4a">wiced_bt_gatt_client_send_write</a> (uint16_t conn_id, <a class="el" href="group__wicedbt__gatt.html#ga6bf4e326bf95c613ff59591782abf6b4">wiced_bt_gatt_opcode_t</a> opcode, <a class="el" href="structwiced__bt__gatt__write__hdr__t.html">wiced_bt_gatt_write_hdr_t</a> *p_hdr, uint8_t *p_app_write_buffer, <a class="el" href="group__wicedbt__gatt.html#ga80c3de8e66dd4257528aeaf34484d14c">wiced_bt_gatt_app_context_t</a> p_app_ctxt)</td></tr>
<tr class="memdesc:ga1a0c27ab8cf1552b82d7892fef722a4a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write to remote ATT server.  <a href="#ga1a0c27ab8cf1552b82d7892fef722a4a">More...</a><br /></td></tr>
<tr class="separator:ga1a0c27ab8cf1552b82d7892fef722a4a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga557c18bfce7377c09deee7b45a94c99a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__wicedbt__gatt.html#ga0e035835afe92d61fe430ea19029677a">wiced_bt_gatt_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gatt__client__api__functions.html#ga557c18bfce7377c09deee7b45a94c99a">wiced_bt_gatt_client_send_execute_write</a> (uint16_t conn_id, <a class="el" href="group__gentypes.html#ga2bc92bd117cfd3f6ec4ae452e6ced064">wiced_bool_t</a> is_execute)</td></tr>
<tr class="memdesc:ga557c18bfce7377c09deee7b45a94c99a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Send Execute Write request to remote ATT server.  <a href="#ga557c18bfce7377c09deee7b45a94c99a">More...</a><br /></td></tr>
<tr class="separator:ga557c18bfce7377c09deee7b45a94c99a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae363a106fa85653e78cdf18d84c500d2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__wicedbt__gatt.html#ga0e035835afe92d61fe430ea19029677a">wiced_bt_gatt_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gatt__client__api__functions.html#gae363a106fa85653e78cdf18d84c500d2">wiced_bt_gatt_client_send_indication_confirm</a> (uint16_t conn_id, uint16_t handle)</td></tr>
<tr class="memdesc:gae363a106fa85653e78cdf18d84c500d2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Send a handle value confirmation to remote ATT server.  <a href="#gae363a106fa85653e78cdf18d84c500d2">More...</a><br /></td></tr>
<tr class="separator:gae363a106fa85653e78cdf18d84c500d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga18fac5275124f232b594ffe4af146774"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga18fac5275124f232b594ffe4af146774">&#9670;&nbsp;</a></span>wiced_bt_gatt_client_configure_mtu()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__wicedbt__gatt.html#ga0e035835afe92d61fe430ea19029677a">wiced_bt_gatt_status_t</a> wiced_bt_gatt_client_configure_mtu </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>conn_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>mtu</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Configure the ATT MTU size for a connection on an LE transport. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">conn_id</td><td>: GATT connection handle </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">mtu</td><td>: New MTU size</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__wicedbt__gatt.html#ga972f2437538363989cee28019cb06652">wiced_bt_gatt_status_t </a></dd></dl>
<dl class="section note"><dt>Note</dt><dd>Allowed mtu range is 23 upto <a class="el" href="structwiced__bt__cfg__ble__t.html#aff4b2166af3a3a1c01b4a1a01950139d">wiced_bt_cfg_ble_t::ble_max_rx_pdu_size</a> for LE links as configured in <a class="el" href="structwiced__bt__cfg__settings__t.html" title="Bluetooth stack configuration.">wiced_bt_cfg_settings_t</a> </dd></dl>

</div>
</div>
<a id="ga9ed05bb952c196c118f3c3d5305f215e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9ed05bb952c196c118f3c3d5305f215e">&#9670;&nbsp;</a></span>wiced_bt_gatt_client_send_discover()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__wicedbt__gatt.html#ga0e035835afe92d61fe430ea19029677a">wiced_bt_gatt_status_t</a> wiced_bt_gatt_client_send_discover </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>conn_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__wicedbt__gatt.html#ga9ce8b7b2a10d8e1f851d62aa931b0e18">wiced_bt_gatt_discovery_type_t</a>&#160;</td>
          <td class="paramname"><em>discovery_type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structwiced__bt__gatt__discovery__param__t.html">wiced_bt_gatt_discovery_param_t</a> *&#160;</td>
          <td class="paramname"><em>p_discovery_param</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Start an attribute discovery on an ATT server. </p>
<p>Discovery results are notified using <b> GATT_DISCOVERY_RESULT_EVT </b>; completion is notified using <b> GATT_DISCOVERY_CPLT_EVT </b> of <a class="el" href="group__wicedbt__gatt.html#ga826a5f3ef4bd8587ee6af52ed9b4a4f2" title="GATT event notification callback.">wiced_bt_gatt_cback_t</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">conn_id</td><td>: GATT connection handle </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">discovery_type</td><td>: Discover type </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">p_discovery_param</td><td>: Discover parameter</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__wicedbt__gatt.html#ga972f2437538363989cee28019cb06652">wiced_bt_gatt_status_t </a> </dd></dl>

</div>
</div>
<a id="ga22d6a277ecfcc3f3193e248e5a9c89c3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga22d6a277ecfcc3f3193e248e5a9c89c3">&#9670;&nbsp;</a></span>wiced_bt_gatt_client_send_read_handle()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__wicedbt__gatt.html#ga0e035835afe92d61fe430ea19029677a">wiced_bt_gatt_status_t</a> wiced_bt_gatt_client_send_read_handle </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>conn_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>offset</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>p_read_buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>len</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__wicedbt__gatt.html#ga44fcc1fe578d11d29279b92a7fcc936d">wiced_bt_gatt_auth_req_t</a>&#160;</td>
          <td class="paramname"><em>auth_req</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Read from remote ATT server. </p>
<p>Result is notified using <b> GATT_OPERATION_CPLT_EVT </b> of <a class="el" href="group__wicedbt__gatt.html#ga826a5f3ef4bd8587ee6af52ed9b4a4f2" title="GATT event notification callback.">wiced_bt_gatt_cback_t</a>, with <a class="el" href="structwiced__bt__gatt__operation__complete__t.html#a388e4fc3c7ee01d7cab9e7e040dc3ee6">wiced_bt_gatt_operation_complete_t::op</a> set to GATTC_OPTYPE_READ_HANDLE</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">conn_id</td><td>: Connection id </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">handle</td><td>: Attribute handle to read </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">offset</td><td>: Offset to start read from. To read the entire attribute set offset to 0. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>: In case the offset is set to 0, the stack first sends a GATT_REQ_READ and then sends out a series of GATT_REQ_READ_BLOB till the entire attribute is read or until the <code>p_read_buf</code> is filled upto <code>len</code> </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">p_read_buf</td><td>: The buffer to save the read response </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">len</td><td>: Length of the <code>p_read_buf</code> </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">auth_req</td><td>: Authentication requirements</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__wicedbt__gatt.html#ga972f2437538363989cee28019cb06652">wiced_bt_gatt_status_t </a> </dd></dl>

</div>
</div>
<a id="gaab8c3fff985e0a6beb83cd368b63e548"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaab8c3fff985e0a6beb83cd368b63e548">&#9670;&nbsp;</a></span>wiced_bt_gatt_client_send_read_by_type()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__wicedbt__gatt.html#ga0e035835afe92d61fe430ea19029677a">wiced_bt_gatt_status_t</a> wiced_bt_gatt_client_send_read_by_type </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>conn_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>s_handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>e_handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structwiced__bt__uuid__t.html">wiced_bt_uuid_t</a> *&#160;</td>
          <td class="paramname"><em>p_uuid</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>p_read_buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>len</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__wicedbt__gatt.html#ga44fcc1fe578d11d29279b92a7fcc936d">wiced_bt_gatt_auth_req_t</a>&#160;</td>
          <td class="paramname"><em>auth_req</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Read by type from remote ATT server. </p>
<p>The handle information for the read by type request is received via <b> GATT_OPERATION_CPLT_EVT </b> of <a class="el" href="group__wicedbt__gatt.html#ga826a5f3ef4bd8587ee6af52ed9b4a4f2" title="GATT event notification callback.">wiced_bt_gatt_cback_t</a> with <a class="el" href="structwiced__bt__gatt__operation__complete__t.html#a388e4fc3c7ee01d7cab9e7e040dc3ee6">wiced_bt_gatt_operation_complete_t::op</a> set to <a class="el" href="group__wicedbt__gatt.html#gga20bd3f2b04d68644e09d61a327857f5ba9394724415a2691ce8c39c89225718dc">GATTC_OPTYPE_READ_HANDLE</a> A non-zero <a class="el" href="structwiced__bt__gatt__operation__complete__t.html#abeaabd24870bbe8bb1caf266beea1d97">wiced_bt_gatt_operation_complete_t::pending_events</a> indicates multiple handle responses which may be returned from the server for some UUIDs</p>
<p>The end of the read by type transaction is notified with result via <b> GATT_OPERATION_CPLT_EVT </b> of <a class="el" href="group__wicedbt__gatt.html#ga826a5f3ef4bd8587ee6af52ed9b4a4f2" title="GATT event notification callback.">wiced_bt_gatt_cback_t</a> with <a class="el" href="structwiced__bt__gatt__operation__complete__t.html#a388e4fc3c7ee01d7cab9e7e040dc3ee6">wiced_bt_gatt_operation_complete_t::op</a> set to GATTC_OPTYPE_READ_BY_TYPE</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">conn_id</td><td>: Connection id </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">s_handle</td><td>: Start handle of the range to search </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">e_handle</td><td>: End handle of the range to search </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">p_uuid</td><td>: The attribute uuid to match </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">p_read_buf</td><td>: The buffer to save the read response in case the first response to the type does not fit into the available MTU. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">len</td><td>: Length of the <code>p_read_buf</code> </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">auth_req</td><td>: Authentication requirements</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__wicedbt__gatt.html#ga972f2437538363989cee28019cb06652">wiced_bt_gatt_status_t </a> </dd></dl>

</div>
</div>
<a id="ga57ead21a135107e216056fb40e5013fd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga57ead21a135107e216056fb40e5013fd">&#9670;&nbsp;</a></span>wiced_bt_gatt_client_send_read_multiple()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__wicedbt__gatt.html#ga0e035835afe92d61fe430ea19029677a">wiced_bt_gatt_status_t</a> wiced_bt_gatt_client_send_read_multiple </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>conn_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__wicedbt__gatt.html#ga6bf4e326bf95c613ff59591782abf6b4">wiced_bt_gatt_opcode_t</a>&#160;</td>
          <td class="paramname"><em>opcode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>num_handles</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>p_handle_stream</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__wicedbt__gatt.html#ga44fcc1fe578d11d29279b92a7fcc936d">wiced_bt_gatt_auth_req_t</a>&#160;</td>
          <td class="paramname"><em>auth_req</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Read multiple from remote ATT server. </p>
<p>Result is notified using <b> GATT_OPERATION_CPLT_EVT </b> of <a class="el" href="group__wicedbt__gatt.html#ga826a5f3ef4bd8587ee6af52ed9b4a4f2" title="GATT event notification callback.">wiced_bt_gatt_cback_t</a>, with <a class="el" href="structwiced__bt__gatt__operation__complete__t.html#a388e4fc3c7ee01d7cab9e7e040dc3ee6">wiced_bt_gatt_operation_complete_t::op</a> a) set to GATTC_OPTYPE_READ_MULTIPLE for <code>opcode</code> = GATT_REQ_READ_MULTI and b) set to GATTC_OPTYPE_READ_HANDLE for <code>opcode</code> = GATT_REQ_READ_MULTI_VAR_LENGTH</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">conn_id</td><td>: Connection id </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">opcode</td><td>: Can be set to <a class="el" href="group__wicedbt__gatt.html#gga1bec0037cd2837dc90a967458b3cc68bada432729197e6189c196a01d65597293">GATT_REQ_READ_MULTI</a> or <a class="el" href="group__wicedbt__gatt.html#gga1bec0037cd2837dc90a967458b3cc68baeafa2b04ebdf14895feec3338b37252b">GATT_REQ_READ_MULTI_VAR_LENGTH</a> </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">num_handles</td><td>: Number of handles pointed to by <code>p_handle_stream</code> </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">p_handle_stream</td><td>: The list of 16 bit handles arranged in Little Endian format </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">auth_req</td><td>: Authentication requirements</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__wicedbt__gatt.html#ga972f2437538363989cee28019cb06652">wiced_bt_gatt_status_t </a> </dd></dl>

</div>
</div>
<a id="ga1a0c27ab8cf1552b82d7892fef722a4a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1a0c27ab8cf1552b82d7892fef722a4a">&#9670;&nbsp;</a></span>wiced_bt_gatt_client_send_write()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__wicedbt__gatt.html#ga0e035835afe92d61fe430ea19029677a">wiced_bt_gatt_status_t</a> wiced_bt_gatt_client_send_write </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>conn_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__wicedbt__gatt.html#ga6bf4e326bf95c613ff59591782abf6b4">wiced_bt_gatt_opcode_t</a>&#160;</td>
          <td class="paramname"><em>opcode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structwiced__bt__gatt__write__hdr__t.html">wiced_bt_gatt_write_hdr_t</a> *&#160;</td>
          <td class="paramname"><em>p_hdr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>p_app_write_buffer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__wicedbt__gatt.html#ga80c3de8e66dd4257528aeaf34484d14c">wiced_bt_gatt_app_context_t</a>&#160;</td>
          <td class="paramname"><em>p_app_ctxt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Write to remote ATT server. </p>
<p>Result is notified using <b> GATT_OPERATION_CPLT_EVT </b> of <a class="el" href="group__wicedbt__gatt.html#ga826a5f3ef4bd8587ee6af52ed9b4a4f2" title="GATT event notification callback.">wiced_bt_gatt_cback_t</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">conn_id</td><td>: Connection handle </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">opcode</td><td>: Can be <a class="el" href="group__wicedbt__gatt.html#gga1bec0037cd2837dc90a967458b3cc68baeaf87c53ee0b114a68df4c4e2d7705e8">GATT_REQ_WRITE</a>, <a class="el" href="group__wicedbt__gatt.html#gga1bec0037cd2837dc90a967458b3cc68bae9076bb7b96ed9e0541b756436068f32">GATT_CMD_WRITE</a>, <a class="el" href="group__wicedbt__gatt.html#gga1bec0037cd2837dc90a967458b3cc68baf95ac38b63a8c986f291ac2bda6a2399">GATT_REQ_PREPARE_WRITE</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>: When opcode is set to <a class="el" href="group__wicedbt__gatt.html#gga1bec0037cd2837dc90a967458b3cc68baeaf87c53ee0b114a68df4c4e2d7705e8">GATT_REQ_WRITE</a> and the length to be written is greater than MTU - 3, then the stack splits the write into a series of <a class="el" href="group__wicedbt__gatt.html#gga1bec0037cd2837dc90a967458b3cc68baf95ac38b63a8c986f291ac2bda6a2399">GATT_REQ_PREPARE_WRITE</a> and finally sends a <a class="el" href="group__wicedbt__gatt.html#gga1bec0037cd2837dc90a967458b3cc68ba5eb1dc7717102415663e5b5c4e4d6857">GATT_REQ_EXECUTE_WRITE</a> to complete the write. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">p_hdr</td><td>: Pointer to the write parameters, with application data in <code>p_app_write_buffer</code> </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">p_app_write_buffer</td><td>Pointer to the application data buffer to be sent. The len of the buffer is in <code>p_hdr-&gt;len</code> </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">p_app_ctxt</td><td>: Application context for <code>p_app_write_buffer</code> </td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>The application may free/release/deallocate the <code>p_app_write_buffer</code> pointer on receiving a <a class="el" href="group__wicedbt__gatt.html#gga1a4943c0f32914d5d939b05e84c99631a68a87f3f6a4f7c061b50872522f507a4">GATT_APP_BUFFER_TRANSMITTED_EVT</a> with <a class="el" href="structwiced__bt__gatt__buffer__transmitted__t.html#a9dc2ce0fcd9d8fdce23345249c36a42e">wiced_bt_gatt_buffer_transmitted_t::p_app_data</a> set to <code>p_app_write_buffer</code> and <a class="el" href="structwiced__bt__gatt__buffer__transmitted__t.html#aee4534bcf5ed42ab50f7c80a46278a1a">wiced_bt_gatt_buffer_transmitted_t::p_app_ctxt</a> set to <code>p_app_ctxt</code> </dd></dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__wicedbt__gatt.html#ga972f2437538363989cee28019cb06652">wiced_bt_gatt_status_t </a> </dd></dl>

</div>
</div>
<a id="ga557c18bfce7377c09deee7b45a94c99a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga557c18bfce7377c09deee7b45a94c99a">&#9670;&nbsp;</a></span>wiced_bt_gatt_client_send_execute_write()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__wicedbt__gatt.html#ga0e035835afe92d61fe430ea19029677a">wiced_bt_gatt_status_t</a> wiced_bt_gatt_client_send_execute_write </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>conn_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__gentypes.html#ga2bc92bd117cfd3f6ec4ae452e6ced064">wiced_bool_t</a>&#160;</td>
          <td class="paramname"><em>is_execute</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Send Execute Write request to remote ATT server. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">conn_id</td><td>: Connection handle </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">is_execute</td><td>: <b>WICED_BT_TRUE </b> to execute, <b> WICED_BT_FALSE </b> to cancel</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__wicedbt__gatt.html#ga972f2437538363989cee28019cb06652">wiced_bt_gatt_status_t </a> </dd></dl>

</div>
</div>
<a id="gae363a106fa85653e78cdf18d84c500d2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae363a106fa85653e78cdf18d84c500d2">&#9670;&nbsp;</a></span>wiced_bt_gatt_client_send_indication_confirm()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__wicedbt__gatt.html#ga0e035835afe92d61fe430ea19029677a">wiced_bt_gatt_status_t</a> wiced_bt_gatt_client_send_indication_confirm </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>conn_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>handle</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Send a handle value confirmation to remote ATT server. </p>
<p>in response to <b>GATTC_OPTYPE_INDICATION </b> of <a class="el" href="group__wicedbt__gatt.html#ga826a5f3ef4bd8587ee6af52ed9b4a4f2" title="GATT event notification callback.">wiced_bt_gatt_cback_t</a></p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">conn_id</td><td>: Connection handle </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">handle</td><td>: Attribute handle</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__wicedbt__gatt.html#ga972f2437538363989cee28019cb06652">wiced_bt_gatt_status_t </a> </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath">
    <ul>
        <li class="footer">
            Generated for <b>Bluetooth Host Stack Library</b> by <b>Cypress Semiconductor Corporation</b>.
            All rights reserved.
        </li>
    </ul>
</div>
</body>
</html>
